#!/bin/sh

FILE_NAME=backend-management-platform-1.0.0-SNAPSHOT.jar
#检查程序是否在运行
pid=`ps -ef | grep $FILE_NAME | grep -v grep | awk '{print $2}'`
if [ -z "${pid}" ]; then
  echo "端口未被占用"
else
  echo "进程已存在,PID为: $pid"
  kill -9 $pid
fi
